﻿	      <?php include("conn.php");
             mysql_query('SET NAMES UTF8'); 

	  

class MyPrizeBean
{
	public $fulse;
	public $content;
	public $contents;

	function __construct($fulse,$content,$contents)
	{
		$this->fulse      = $fulse;
		$this->content      = $content;
		$this->contents      = $contents;
	}
}



	$prize = array();
	 
 $state=1;
$rert31=mysql_query("select *from xitong order by id desc limit 0,1");
$rowf2=mysql_fetch_array($rert31);

   if($_REQUEST[xitong]=="android")
   
      {
    if($rowf2[banben]==$_REQUEST[banben])
	{
	$der=100;
	
	}
	   
	else
	{


		 $der=200;
		 $xitong=$rowf2[content];
		}
		
		}
		
		else
		{
		
		    if($rowf2[banben1]==$_REQUEST[banben])
	{
	$der=100;
	
	}
	   
	else
	{


		 $der=200;
		 $xitong=$rowf2[contents];
		}
		
		}
		
		
		

$prize[] = new MyPrizeBean($der,$xitong);
echo json_encode($prize);


?>